/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.entity.smsrecord;

import java.util.Date;

import com.idenger.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 短信记录Entity
 * @author 兰正军
 * @version 2017-12-01
 */
public class EduSmsRecord extends DataEntity<EduSmsRecord> {
	
	private static final long serialVersionUID = 1L;
	private String phone;		// 手机号
	private String content;		// 内容
	private Date expiryDate;	//到期时间
	private String status;		//验证状态 1—已验证
	
	public EduSmsRecord() {
		super();
	}

	public EduSmsRecord(String id){
		super(id);
	}

	@Length(min=1, max=64, message="手机号长度必须介于 1 和 64 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=1, max=1024, message="内容长度必须介于 1 和 1024 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getExpiryDate() {
		return expiryDate;
	}

	public void setExpiryDate(Date expiryDate) {
		this.expiryDate = expiryDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	
	
}